#pragma once 

#include "helper/sqlite/QueryResult.h"
#include "helper/sqlite/Value.h"

namespace helper {
namespace sqlite {
namespace stream {

class Room {
public:
  Room(size_t rowid, size_t colid, size_t columnCount, QueryResult & r)
  : _rowid(rowid)
  , _colid(colid)
  , _columnCount(columnCount)
  , _result(r)
  {
  }
  ~Room(){
  }

  inline Value value() const {
    return _result.values(_colid).value();
  }
  inline size_t rowid() const {
    return _rowid;
  }
  inline size_t colid()const {
    return _colid;
  }
  inline size_t columnCount() const {
    return _columnCount;
  }

private:
  size_t _rowid;
  size_t _colid;
  size_t _columnCount;
  QueryResult & _result;
};

}//namespace stream
}//namespace sqlite
}//namespace helper
